package io.shallwe.front;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.jfinal.aop.Aop;
import com.jfinal.kit.Ret;
import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Page;
import com.jfinal.plugin.activerecord.Record;

import io.shallwe._admin.basedata.scanner.ScannerService;
import io.shallwe._admin.line.EnterScanService;
import io.shallwe.common.model.Account;

/***
 * 上线显示屏
 */
public class EnterService {
	
	EnterScanService enterScanService= Aop.get(EnterScanService.class);
	ScannerService scannerService = Aop.get(ScannerService.class);

	public Ret paginate(Integer offset, Integer pageSize) {
		Page<Record> paginate = Db.template("enterBuffer.paginate").paginate(1, 6);
		List<Record> list = paginate.getList();
		List<Record> newPageList=new ArrayList<>(list);
		Ret ret = Ret.by("total", 8).set("rows", newPageList);
		return ret;
	}
	

}
